package com.xuecheng.learning.api;

import com.xuecheng.commons.model.vo.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 学习Feign接口
 *
 * @author 七安
 */
@FeignClient("xc-learning-service")
public interface LearningClient {

    @PostMapping("/courseRecord/saveRecord")
    ResponseResult saveOrUpdateCourseRec(@RequestParam("coursePubId") Long coursePubId, @RequestParam("userId") Long userId);
}
